#ifndef RULESETSQLTABLEMODEL_H
#define RULESETSQLTABLEMODEL_H

#include <QSqlTableModel>
#include <QSqlRecord>
#include <QVariant>

/**
 \file rulesetsqltablemodel.h

 \class RulesetSqlTableModel

 \brief Subclass of QSqlTableModel tweaked for Rulesets


*/
class RulesetSqlTableModel : public QSqlTableModel
{
    Q_OBJECT
public:

    explicit RulesetSqlTableModel(QObject *parent = 0);

    /**
    \brief update a table row

    \param row - number of row to be updated
    \param values - row contents

    \return true if update succeeds else false
      *****************/
    virtual bool updateRowInTable(int row, const QSqlRecord &values);

signals:

public slots:

    virtual void setNameUpperCase(QSqlRecord &record);
    virtual void setNameUpperCaseUpdate(int row, QSqlRecord &record);

protected:



};

#endif // RULESETSQLTABLEMODEL_H
